package com.fusion.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fusion.domain.User;
import com.fusion.service.UserService;

@RestController
public class UserController {

	@Autowired
	private UserService userService;
	
	@GetMapping("add")
	public boolean add() {
		return userService.add();
	}
	
	@GetMapping("list")
	public IPage<User> list() {
		return userService.findList();
	}
}
